weaveDocs
weave / weaveAudio

Function: weaveAudio()

weaveAudio(options): WeaveAudio
새 WeaveAudio 객체 생성

매개변수

options: WeaveAudioInput 이 미디어 타입에 대한 옵션
  • data: The raw audio data as a Buffer
  • audioType: (Optional) The type of audio file, currently only ‘wav’ is supported

반환

WeaveAudio

예시

const audioBuffer = fs.readFileSync('path/to/audio.wav');
const weaveAudio = weaveAudio({ data: audioBuffer });

정의 위치

media.ts:62